"""yunxiang URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path, include
from rest_framework.authtoken import views
from rest_framework_simplejwt.views import (
    TokenObtainPairView,
    TokenRefreshView,
    TokenVerifyView
)

urlpatterns = [
    path('admin/', admin.site.urls),
    path('api-auth/', include('rest_framework.urls')),
    path('api-token-auth/', views.obtain_auth_token),
    path('api/token/', TokenObtainPairView.as_view(), name='token_obtain_pair'),
    path('api/token/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
    path('api/token/verify/', TokenVerifyView.as_view(), name='token_verify'),

    path('home/', include('apps.home.urls')),

    path('equipment_maintenance_plan/', include('apps.equipment_maintenance_plan.urls')),
    path('equipment_inspection_control/', include('apps.equipment_inspection_control.urls')),
    path('equipment_inspection_claim_report/', include('apps.equipment_inspection_claim_report.urls')),
    path('equipment_inspection_analysis_dispatch/', include('apps.equipment_inspection_analysis_dispatch.urls')),
    path('equipment_maintenance_claim_report/', include('apps.equipment_maintenance_claim_report.urls')),
    path('equipment_monitor_screen/', include('apps.equipment_monitor_screen.urls')),
    path('equipment_working_condition_monitor/', include('apps.equipment_working_condition_monitor.urls')),

    path('quality_sampling/', include('apps.quality_sampling.urls')),

    path('technology_parameter_management/', include('apps.technology_parameter_management.urls')),
    path('technology_abnormal_analysis_dispatch/', include('apps.technology_abnormal_analysis_dispatch.urls')),
    path('technology_abnormal_maintain_report/', include('apps.technology_abnormal_maintain_report.urls')),
    path('technology_monitor_screen/', include('apps.technology_monitor_screen.urls')),

    path('knowledge_knowledge_graph/', include('apps.knowledge_knowledge_graph.urls')),
    path('knowledge_fault_tree/', include('apps.knowledge_fault_tree.urls')),
    path('knowledge_fishbone_diagram/', include('apps.knowledge_fishbone_diagram.urls')),
    path('knowledge_user_manual/', include('apps.knowledge_user_manual.urls')),
    path('knowledge_production_statistics_screen/', include('apps.knowledge_production_statistics_screen.urls')),
    path('knowledge_maintenance_history/', include('apps.knowledge_maintenance_history.urls')),
    path('knowledge_production_history/', include('apps.knowledge_production_history.urls'))
]
